﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2"
                assembly="Inovout.Organization"
				        namespace="Inovout.Organization.Domain">
<class name="Manager" table="Organization_Manager" lazy="false">
  <id name="Id" access="field.camelcase"
      column="ManagerId" type="Int32">
    <generator class="native" />
  </id>
  <property name="OrganizationUnitId" />
  <property name="Office" />
  <!--<set name="person" inverse="true" cascade="all">
    <key column="PersonId"></key>
    <one-to-many class="Inovout.People.Domain.Person,Inovout.People"/>
  </set>-->
  <many-to-one name="person" column="PersonId" foreign-key="FK_Person_PersonId_Organization_Manager_ManagerId" class="Inovout.People.Domain.Person"  cascade="all"/>
  <property name="CreatedTime" access="field.camelcase" />
  <property name="CreatedUserName" access="field.camelcase" />
  <property name="ModifiedTime" access="field.camelcase" />
  <property name="ModifiedUserName" access="field.camelcase" />
  <property name="AccessedTime" access="field.camelcase" />
  <property name="AccessedUserName" access="field.camelcase" />
  <property name="Memo" />
  <property name="IsInvalid" />
</class>
</hibernate-mapping>